package com.leyou.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.order.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 *
 */
public interface OrderMapper extends BaseMapper<Order> {
    @Select("SELECT order_id FROM tb_order WHERE `status`=#{status} AND `create_time`>= #{date}")
    List<Long> findOrderIds(@Param("date") Date date, @Param("status")int status);
}
